It's simple and efficient.
/path/to/exim -v 'user@domain' message here ^D ( control D )
The "control D" sends an EOF to the executable. To get the path simply "which exim".
It's simple and efficient.
/path/to/exim -v 'user@domain' message here ^D ( control D )
The "control D" sends an EOF to the executable. To get the path simply "which exim".
I see this is a very common problem. Sometimes people get an error on their IMAP webmail connection and checking the log files at /var/log/maillog there’s an error indicating the disk quota for that user.
Jul 2 11:08:51 mail dovecot[1227]: imap(mailaccount@somedomain.com): Error: user mailaccount@somedomain.com: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/home/someuser/imap/somedomain.com/mailaccount/Maildir) failed: Disk quota exceeded
The generally people claim that playing around with the disk quota of the user helps it. Interestingly in my case, only setting the quota to “Unlimited” solved the problem. So keep that in mind.
It seems like the reason behind this error is that dovecot used to handle quotas using the /var directory, but now switched it to the /home directory.
Also if somehow your system starts reading quotas wrong, don’t forget to use this little tip : http://www.directadmin.com/features.php?id=529
echo “action=rewrite&value=quota” >> /usr/local/directadmin/data/task.queue
This command will go through each user, and set the quota limits in the system quotas. Users will unlmited quotas will also have their quota limit set to 0 (unlimited).
echo “action=rewrite&value=quota&user=bob” >> /usr/local/directadmin/data/task.queue
Same thing, except it’s just sets the quota for one user.
Here’s my to-do list after installing a fresh Ubuntu 13.04. Some of them are probably very personal and you won’t need them, yet it might give an idea.
First of all I edit the settings of gedit.
Edit -> Preferences
View tab : Check “Display line numbers”, “Enable text wrapping”, “Highlight current line” and “Highlight matching brackets”
Editor tab : Set the tab width to 4 and check “Insert spaces instead of tabs” and “Enable automatic indentation”
Next, I install and personalize Geany. I’ve discussed the necessary steps before on this post.
Unfortunately the VI that is shipped with Ubuntu is buggy. I usually replace it with VIM.
$ sudo apt-get install vim
After this, I update the vimrc file to personalize. I’ve talked about it in this post.
This is another very well designed text editor. I like installing and personalising it. You can find methods to install it in this post. I prefer using Sublime Text 3, and then using the following settings in the configuration file.
"tab_size": 4, "use_tab_stops": true, "detect_indentation": true, "auto_indent": true, "smart_indent": true, "highlight_line": false, "draw_white_space": "all",
First of all I install the ssh server.
$ sudo apt-get install openssh-server
After this, I simply “ssh localhost” in order to get the ~/.ssh folder created.
After this, I copy my id_rsa and id_rsa.pub files into this folder.
Then,
$ chmod 700 ~/.ssh/id_rsa
$ chmod 664 ~/.ssh/id_rsa.pub
If you want, maybe it’s a good idea to change your default ssh server port.
Edit /etc/ssh/sshd_config and change the line below
# What ports, IPs and protocols we listen for Port 22
If you change the port, you’ll have to restart the ssh server.$ sudo /etc/init.d/ssh restart
After these, I install the PAC-Manager from it’s website : http://sourceforge.net/projects/pacmanager/
Then simply import my old PAC connections.
Well, the title speaks for itself. I usually get Chrome, Opera and Dropbox right after the installation.
Downloading GIMP, Restricted-Extras, VLC are usually critical.
$ sudo apt-get install gimp ubuntu-restricted-extras vlc
Getting ffmpeg, avconv, and java plugins is a good idea.
$ sudo apt-get install ffmpeg libav-tools libavformat-extra-53 libavcodex-extra-53 icedtea-7-plugin openjdk-7-jre
Using the right-click menu on nautilus to open a terminal in that folder is very useful.
$ sudo apt-get install nautilus-open-terminal
Below are for the fundamental tools for network geeks.
$ sudo apt-get install nmap mtr filezilla
For monitoring a lot of things, atop is very useful.
$ sudo apt-get install atop
As an astronomer, I use numpy and pyfits for scientific computing a lot.
$ sudo apt-get install python-pyfits python-numpy
If you’re using Skype, it won’t be visible in the system tray, to fix this, install the following package. (discussed here)
$ sudo apt-get install sni-qt:i386
In order to automatically turn on Numlock at boot, and (on my laptop) remember the brightness setting, I edit the /etc/rc.local file accordingly. The brightness thing is because, my Ubuntu boots with minimum brightness on laptop. Also to turn on automatically, you need to install the numlockx package.
$ sudo apt-get install numlockx
Add these lines to the /etc/rc.local file:
# Numlock enable [ -x /usr/bin/numlockx ] && numlockx on #Auto set brightness (change the value "12" for your system) echo 12 > /sys/class/backlight/acpi_video0/brightness exit 0
It is good to see the date in the top right corner of the screen at all times.
Click on the clock and follow Time & Date Settings… -> Clock tab -> Check “Date and month” below the “In the clock, show” section.
Using this addon, you can import your “exported” filters for Thunderbird.
I usually edit the privacy settings of the Unity Dash so that it won’t record activity on my multimedia files.
Just type “privacy” to the dash and run the settings. On the “Files” tab, select the type of files you don’t want to be recorded.
This was discussed in a blog post, if you use Google Calendar, then it’s a good idea to integrate it with your Ubuntu. Check it out here.
Some programs use the ALT key and since the HUDS want to access it, things can get messed up. That’s why I usually disable the hotkey. It was discussed here before. Simply click on the System Settings… Go to “Keyboard -> Shortcuts” select “Key to show the HUD and hit “Backspace” if you want it disabled.
While disabling the ALT key for HUD, it’s a good idea to also add the minimization shortcut. While at “Keyboard -> Shortcuts” go to “Windows” and add the key combination you like. I usually prefer “Ctrl +Alt + 0”
For me, this is the most annoying updates of Nautilus. When I want to search for something, recursively, I can either use “find” or “locate” or simply hit “search”. Locating files easily in a folder with nautilus is something I use a lot, that’s why this patch is very handy. Follow the instructions in the link below if you don’t like that feature either.
http://www.webupd8.org/2013/09/how-to-disable-recursive-search-in.html
Even though I usually develop using gedit, sometimes it’s nice to use geany as an IDE. I usually install geany and personalize it to look (almost) like gedit. I use this blog post but change some of it. Geany is better for coding in some ways, especially code folding and column selection (ctrl+shift+select) is a plus.
$ sudo apt-get install geany
Now run geany and go to the preferences menu.
Edit -> Preferences
General > Startup : Uncheck “Load virtual terminal support”
General > Miscelaneous : Check “always wrap search”
Interface > Uncheck “show side bar”
Interface > Toolbar > Click the “Customize Toolbar” Button
Remove “Undo, Redo, back, forward, compile, execute, build, color chooser, quit” (if you want, maybe don’t remove Undo and Redo?)
Iconsize : Small
Editor > Set Indentation Widthto 4, Type : Spaces
Editor > Check “line wrapping”
Editor > Line breaking column : 80
Editor > Display > Set Long line marker : column to 80
Editor > Display > Set color to #98A8B6
Files > Check “Replace tabs by space”
Save these settings by clicking “Apply”.
To Remove the message pane, uncheck “View -> Show Message Window”
Enablig Export Plugin is good if you like exporting as LaTeX or such.
Tools -> Plugin Manager -> Enable export
Now you’ll have a better looking Geany to develop.
Censorship reflects a society’s lack of confidence in itself. It’s a hallmark of an authoritarian regime. – Potter Stewart
There is nothing more frightening than active ignorance. – Goethe
Censorship is telling a man he can’t have a steak just because a baby can’t chew it. – Mark Twain