For UNIX users/developers, having the power of the user 0 (root’s UID) on our hands is essential. It also allows us to have complete control over the system. And one more thing we all have in common is that we hate Windows. Thus, we set out in search of an operating system for our own
Read more
Tag: Linux
How to Configure iOS to Use Socks Proxy over SSH with a Linux/Unix Host
Posted onThe socks proxy I created following Proxy Using SSH Tunnel works very well on both Linux and Windows. However, when I try to configure my iPhone and iPad with iOS, I find iOS does not support socks proxy in its settings interface. I don’t know why it is not added while socks proxy is indeed
Read more
How to Copy Output of Commands in a Linux Terminal to X Selection or Clipboard
Posted onxclip is a tool to copy the copy the output of commands from a command line in a terminal to X selection or clipboard. It connects the command line interface and the X selections (clipboard) and is a very useful tool. For example, processing some text in vim in a terminal and then copying it
Read more
Proxy using SSH Tunnel on Windows
Posted onThis article is an instruction of how to use https://www.systutorials.com/proxy-using-ssh-tunnel/ on a Windows machine. The mechanism is similar as the one in https://www.systutorials.com/proxy-using-ssh-tunnel/ with “Proxy listening to localhost port only”. Download PuTTY PuTTY is the software we use here for port forwarding. Please download it following the links in https://www.systutorials.com/open-source-and-portable-ssh-scp-sftp-and-vnc-clients-for-windows-to-remote-control-linux/. Configure PuTTY and create a
Read more
How To Mount Google Drive on Linux
Posted onGoogle Drive is nice cloud storage which provide document editing features. However, it does not yet provide a Linux client. I find a good third party tool that works with Google Drive on Linux very well: google-drive-ocamlfuse. The website of google-drive-ocamlfuse provides easy to follow instructions to install it. In this tutorial, we show a
Read more
Auto Keyboard Pressing Using xvkbd in Linux
Posted onAutomatic keyboard pressers are useful tools. However, it seems that there is no simple and easy to use automatic keyboard presser for Linux if you search for “automatic keyboard presser linux”. After some digging, I find using the xvkbd with some options is a good method for automatic keyboard pressing though it is not designed
Read more
How to install no-ip client on Linux
Posted onnoip2 is a dynamic update client for No-IP to keep your current IP address synchronized with your No-IP domain, no matter whether the IP is dynamically requested via DHCP or static assigned. Furthermore, with the domain name, we can host site using a “static” domain whose CNAME points to the No-IP domain. noip2 is a
Read more
ASCII Table and ASCII Code
Posted onThis post gives the ASCII table and ASCII code with ASCII control characters and ASCII printable characters and a tool to convert ASCII codes to ASCII characters. Introduction to ASCII table and ASCII code ASCII stands for American Standard Code for Information Interchange. An ASCII code is the numerical representation of a character since computers
Read more
How To Enable GNOME Classic Mode in Fedora / CentOS / RHEL Linux
Posted onGNOME 3.8 introduces the classic mode: Classic mode is a new feature for those people who prefer a more traditional desktop experience. Built entirely from GNOME 3 technologies, it adds a number of features such as an application menu, a places menu and a window switcher along the bottom of the screen. Each of these
Read more
Common Operations of Symbolic Links on Linux
Posted onSymbolic link or soft link files are very common and useful on Linux/Unix systems. It works as a alias file for a file. You can create a symbolic links and it can operate transparently for most operations just as normal files. Programs that read or write to files named by a symbolic link behaves as
Read more
Outlook-style Email Reply Header in Thunderbird
Posted onThunderbird’s email reply header is short and not like the ones in Outlook and other email clients. Thunderbird provides several integrated reply headers. However, the Outlook-style reply header with sender, receiver, date, and other information are clear and useful (e.g. my boss cc’ed an email to me to let me handle a request and I
Read more
How to Print Notes on a PDF File with Acrobat, Adobe Reader and Foxit Reader
Posted onPrint PDF with notes is not that straightforward, especially when you want specific styles of the printed notes/comments. In this post, we introduce how to print notes on a PDF file with Acrobat, Adobe Reader and Foxit Reader. Acrobat The detailed method is posted on Adobe’s blog: Printing Sticky Notes on a PDF. Excerpt of
Read more
Essential Firefox Add-ons to Make Firefox Better
Posted onFirefox is highly configurable and there are lots add-ons for it. Addons make Firefox to be good. In this post, I list a set of the best add-ons that I use daily and make my life easier and happier. Essential Firefox addons Screengrab! to make screenshots and save to files or to clipboard. Foxy Gestures
Read more
Set Up SSH Server on Windows XP
Posted onIt is useful sometimes to set up a sshd server on a Windows. One example is using remote forwards tunnel to pass through the firewall. My platform is Windows XP SP3. The sshd server is sshwindows. It can be dowloaded from here: http://sshwindows.sourceforge.net/ . The version I use here is 3.8p1-1 20040709. It is really
Read more
Makefile Tutorials
Posted onMake is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program. Make is widely used, especially in Unix/Linux world. More introductions to Make and it’s history can be found on Wikipedia. In this post, I list articles for Makefile
Read more
Hashing Library for C
Posted onI try to find some Hashing libraries for C and find several good ones. The hsearch function in the GNU C library. There are other methods to organize information which later should be searched. The costs of insert, delete and search differ. One possible implementation is using hashing tables. The following functions are declared in
Read more
GNU C Reference Manual
Posted onWhen we program in C, a C reference by hand is usually useful. The GNU C Reference Manual provides us a good reference for the C programming language implemented by the GNU C Compiler. “This manual is strictly a reference, not a tutorial. Its aim is to cover every linguistic construct in GNU C.” GNU
Read more
Inline Assembly with GCC on Linux
Posted onOne cool feature of gcc is that it can inline assembly into C code. With inline assembly, the programmer can precisely control the execution of the processor, such as forcing variables to use registers, getting special processor state efficiently, and writing critical efficient code in assembly by hand. I compile a list of tutorials from
Read more
fclose – Close a Stream
Posted onfclose is a frequently used C standard library which closes the file associated with the stream and disassociates it. NAME fclose – close a stream SYNOPSIS #include <stdio.h> int fclose(FILE *fp); DESCRIPTION The fclose() function will flushes the stream pointed to by fp (writing any buffered output data using fflush()) and closes the underlying file
Read more
Vim Indenting C/C++ Code
Posted onVim provides some basic formatting commands. A combination of these commands with the editing commands will make the programmer happy. A list of basic text formatting commands in Vim: = is an operator that formats/indents text. i{ is a text object that specifies the surrounding code block. It should be used together with v, =,
Read more