How To Let Sudo Insult You When You Type the Wrong Password

This is a completely useless post, but it’s possible to configure sudo to return insults instead of the default error message when you type the wrong password. To enable this feature, edit /etc/sudoers (with visudo for example) and change the line:

to :

Open a terminal windows as a normal user, type a command with sudo and input the wrong password. Here are a few examples: $ sudo bash [sudo] password for testman: xxx Are you on drugs? [sudo] password for testman: xxx Maybe if you used more than just two fingers… [sudo] password for testman: xxx Listen, burrito brains, I don’t have time to listen to this trash. [sudo] password for testman: xxx You silly, twisted boy you. [sudo] password for testman: xxx What, what, what, what, what, what, what, what, what, what? [sudo] password for testman: xxx You do that again and see what happens… [sudo] […]

Linaro 12.05 Release with Kernel 3.4 and Android 4.0.4

Linaro has just released version 12.05 based on Linux Kernel 3.4 and Android 4.0.4. This release provides lots of improvement for Origen (Samsung Exynos 4) on Android,  further work has been done on big.LITTLE processing and ARMv8 work appears to have started for Ubuntu and Debian. armel vs armhf benchmarks show a massive improvement (up to 15x) when using armhf for povray (3D rendering),. but for most other tests, there is little improvement, and in some rare cases armhf is slightly slower than armel. Here are the highlights of the release: Android Created a stable Google hangout build for Origen Updated DS-5 and gator daemon to 5.10 Stress tests from big.LITTLE testing have been integrated into LAVA Completed big.LITTLE Android tasks Monkeyrunner tests for automating common Android usage have been integrated into LAVA Ordered a new power measurement device from National Instruments Updated and Origen 3.4 rc7 Completed Android HAL […]

Ubuntu, Tizen, XMBC… Demos at Q2.12 Linaro Connect in Hong Kong

Linaro has announced several demos would take place at Linaro Connect on June 1st, 2012 in Hong Kong: Big.LITTLE in-kernel Switcher (Linaro) SIProp – Combat Scouter – How much your Combat Power? (SIProp) Android Toolchain Improvements (Linaro) Origen Running Awesome Code (Linaro) Snowball with MM enablement (Linaro) Tizen on Snowball (Linaro) Google+ Hangouts on an ARM Board (Linaro) Low-Cost Logic Analyzer (Linaro) XBMC on Snowball – ST Ericsson Snowball (Linaro) (Ubuntu) Unity 3D on Snowball (Linaro) Ubuntu TV on Snowball (Linaro) PCM (Phase Change Memory) : Linaro kernel meets with the PCM technology (Micron) ARM DS-5 & Linaro (ARM) Most of the demos will be organized by Linaro, but three others companies will also shown the “show”, namely SIProp, Micron and ARM. It’s always interested to see what happens at Linaro because it gives a view into the future to what may comes to the new products and developers can see what new features are available for […]

Getting Ubuntu armel/armhf Rootfs in Ubuntu 12.04

I’ve recently upgraded to Ubuntu 12.04 and this is a great operating system. However, if you do some arm development and expect to be able to install cross libraries (armel/armhf) or easily generate an arm rootfs using the tools you’ve been used to, you’ll be disappointed. In Ubuntu 11.10 (Oneiric), I used xapt and dpkg-cross to retrieve armel libraries, but it’s broken for Ubuntu 12.04, at least on my system. I’ve been told to switch to multiarch because this will be how it’s done from now on. But I soon discovered this is work in progress as quite a few packages are not multiarched yet including python. Ubuntu developers also decided to remove rootstock (which makes sense since xapt/dpkg-cross will be deprecated), so if you want to generate a rootfs the “gool ol’” way (which won’t be supported much longer), you’d have to install an Oneric chroot to run rootstock, […]

Schematics Capture and PCB Layout in Linux with Kicad

kicad_schematics_eeschema

Most schematics capture and PCB layout software run on Windows and are closed source. But if your favorite OS is Linux, there are a few open source software including Kicad and gEDA. There is also Cadsoft Eagle which can be installed in Linux with a free license for hobbyists and educational purposes, but is not open source. Today, I’ll focus on Kicad. I don’t really capture schematics, let alone layout PCBs, but I sometimes need to use this type of software to locate pins/components on the schematics and PCB and check some parts of the schematics that can affect  software. So I will mainly give an overview of Kicad and write my experience trying to import another project (Beagleboard XM) to Kicad. If you want to learn how to get started with your own project with Kicad, you might want to have a look at Teho Labs Kicad Tutorial. In […]

Build Your Phone Android Distro with CyanogenMod Compiler 0.4 GUI (Cmc-pygtk) for Ubuntu

Lithid, a member of XDA Developers Forum, has recently released the 4th version of a GUI tool (Cmc-pygtk) to build Android for a given smartphone as long as it is supported by CM. The CyanogenMod Compiler is supported by Ubuntu 10.04 32/64-bit and greater, and you can either download a deb file or build it yourself by following the instructions below: Install dependencies:

Clone the source tree:

Generate a gpg key:

Delete the changelog or dpkg will use lithid key instead.:

Edit the EMAIL field in the Makefile and replace it with the one used to generated the gpg key. Build it for your version of Ubuntu. For Ubuntu 12.04 32-bit:

And install it:

Before using CyanogenMod Compiler (CMC) is installed, you need to install google repo tool:

Now that everything is setup, you can run CyanogenMod Compiler: cmc A disclaimer message telling […]

This is What a Calxeda 192-Core ARM Ubuntu 12.04 Server Looks Like

Last November, Calxeda announced its 32-bit ARM Chip for servers, and now there are been some good progress as Calxeda is currently showcasing a 192-core ARM Server running Ubuntu 12.04 LTS Server edition at the Ubuntu Developer Summit in Oakland, California. The server showcased has 192 cores (48 Calxeda EnergyCore quad core Cortex-A9 processors), consumes less than 300 Watts, supports  up to 24 SATA drivers and runs Ubuntu 12.04 with OpenStack’s cloud management infrastructure. Karl Freund, Calxeda Vice President of Marketing said that the Calxeda server is running “a standard LAMP stack (running Calxeda’s website) along with other popular web frameworks such as node.js and Ruby on Rails, provisioning of OpenStack Nova compute instances, and even Canonical’s Metal-as-a-Service bare-metal provisioning.” The company also explained that a complete native build of the Ubuntu 12.04 kernel took less than an hour to build on a single node, 4 times faster than the […]

Getting Started with MultiArch (armel / armhf) in Ubuntu

Until now, I used xapt and dpkg-cross to install cross libraries for armel, but since I’ve upgraded to Ubuntu 12.04, it appears to be broken. I’ve contacted Linaro about this issue, and the “cross-building” expert at Linaro (wookey) recommended me to use multiarch instead, as xapt/dpkg-cross will be eventually deprecated. He provided me an example showing how-to use multiarch to build Chromium. I’ve been looking for a “How-to multiarch”, but haven’t been able to find something really clear and simple, so I thought I would post it here. In the example, they used a chroot for cross-building, which is probably a good idea to avoid messing up with the system. It’s also possible multiarch is not 100% reliable, and I’ve read stories where people messed up their system when using multiarch with i386 (32-bit) and amd64 (64-bit). Preparing a chroot for cross-building I’ll use a 32-bit Ubuntu precise chroot, but […]

Exit mobile version
EmbeddedTS embedded systems design