To set the balance from the command line, you can use amixer.
With amixer, you can set the volumes of the left and right ALSA channels. For example,
amixer sset Master 80%,20%
will shift the balance toward the left.
Source: here
To set the balance from the command line, you can use amixer.
With amixer, you can set the volumes of the left and right ALSA channels. For example,
amixer sset Master 80%,20%
will shift the balance toward the left.
Source: here
If your connection keeps dying, dropping, or doesn’t even becomes established, make sure you
I also have the Google Nexus USB driver installed:
Linux:
find . -name “*.html” -exec sed -i “s/php/html/g” ‘{}’ \;
Download example: splitwav2flac
“Here’s a way to have the cue+flac split and resulting files named and tagged correctly. You need a tool called lltag, it’s in Debian so I assume it’s in Ubuntu too.
For cue + flac:
cuebreakpoints *.cue | shnsplit -o flac *.flac && cuetag *.cue `ls split-track*.flac` && lltag –yes –no-tagging –rename ‘%n – %a – %t’ `ls split-track*.flac`
That’s all one line btw, not sure how it’s going to be formatted on posting it here.
Similalry for cue+ape:
cuebreakpoints *.cue | shnsplit -o flac *.ape && cuetag *.cue `ls split-track*.flac` && lltag –yes –no-tagging –rename ‘%n – %a – %t’ `ls split-track*.flac`
The lltag options explained:
–yes
Don’t stop for confirmation. lltag is an interactive script but we’re not using it interactively here.
–no-tagging
tells lltag to ignore tagging operations and only deal with the renaming
–rename
obvious? possible components to make up the final name string:
%a to match the author.
%A to match the album.
%g to match the genre.
%n to match the track number.
%t to match the title.
%d to match the date.
%c to match the comment.
%i to match anything and ignore it.
%% to match %.
Additionaly, while renaming, the following codes are available:
%F is replaced by the original basename of the file.
%E is replaced by the original extension of the file.
%P is replaced by the original path of the file.
You can see what an easy and flexible tool lltag is compared to shntool split/shnsplit for renaming. I assume there is a *reliable* way to do this with shntool but I didn’t find it, and the only real tutorial for shntool has been unavailable for a long time. The shntool man page has some frustrating gaps, assumes too much knowledge imo and generally makes me want to break something (wind/heads/windows/sweat).
Using this method you get some warning messages from cuetag. Ignore them, it’s no problem.
I’ve found the nicest way to use these commands is to have them as scripts i.e. cue+flac2flac.sh and cue+ape2flac.sh, put them in /usr/local/bin, make them executable and then I can have them run by way of a Thunar custom action which opens a terminal and runs them. You can see how easy it is to have a similar script for any cue+lossless format you might encounter.”
Originally posted here: http://aidanjm.wordpress.com/2007/02/15/split-lossless-audio-ape-flac-wv-wav-by-cue-file
Download MyGestures:
http://sourceforge.net/projects/mygestures/
When compiling you could get errors like:
XmuClientWindow in -lXmu... no
Standard Ubuntu 10.10 installation needs some extra libraries to be able to compile MyGestures:
sudo apt-get install libxmu-dev
sudo apt-get install libxrender-dev
sudo apt-get install libxtst-dev
Then extract the source:
tar zxvf mygestures0.5-4-src.tar.gz
And install:
cd mygestures
./configure
make
sudo make install
Done.
So, Ziggo (my ISP) decided to block outgoing connections on port 25 on anything other then their own mailserver.
Since very few people use my mail server, I decided to just change the port on which the smtp server runs.
That’s very easy:
open up:
/etc/postfix/master.cf
find the line which looks like:
smtp inet n - - - - smtpd -o content_filter=spamassassin
comment that one out (see update below!), and make it read:
8025 inet n - - - - smtpd -o content_filter=spamassassin
after that, restart Postfix:
/etc/init.d/postfix restart
This will make smtp run on port 8025 (choice of port number is up to you, of course)
update! Rather than just changing the port from 25 to 8025, you can also *add* the line. Your postfix will then serve at both 25 and 8025 ports.
These are the tweaks I applied to my Ubuntu 10.10 installation on SSD (OCZ Vertex2)
1. Auto-trim
2. tmpfs for ‘/tmp’
3. ‘noatime’ mount option
Automatic TRIM is supported since kernel 2.6.33 with the EXT4 file system
For automatic TRIM to work, the drive needs to be mounted with the “discard” option in fstab. To add this option run:
sudo cp /etc/fstab ~/fstab-backup
sudo gedit /etc/fstab
add “discard” to options on the entry for the SSD; the line should read similar to this:
UUID=ed586ab8-08c5-4bae-b118-d191b716b4a4 / ext4 discard,errors=remount-ro 0 1
reboot, automatic TRIM should now be working.
Testing automatic TRIM:
To Test if Trim is working issue the following commands (adapted from here):
cd / #or whatever part of the file system is on the SSD
sudo dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct # you will not need sudo for these to work, if your SSD is in /home for example
sudo hdparm --fibmap tempfile
from the output copy the number under “begin_LBA” and use it in the next command
sudo hdparm --read-sector 2638848 /dev/sda #replace 2638848 with the number obtained before and /sda with your SSD drive
you should receive a a long string of characters for those sectors
sudo rm tempfile
sync
sudo hdparm --read-sector 2638848 /dev/sdd
even after removing the file the sectors are still not empty. Wait a while then run the command again
sudo hdparm --read-sector 2638848 /dev/sdd
if you get only zeros, then automatic TRIM is working.
Added this line to ‘/etc/fstab’ (and reboot!). This will make ‘/tmp’ a ramdisk location (i.e. no actual writes to disk)
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
After that, make your applications use this location, if possible. For instance Firefox temp directory:
1. Type ‘about:config’ in the address bar of Firefox.
2. Create a new string entry: ‘browser.cache.disk.parent_directory’ with value: ‘/tmp’
Now Firefox uses ‘/tmp’ for cache, which reduces disk writes.
My ‘/etc/fstab’ is adjusted with ‘noatime’ in the options for the ssd partitions. This disables writing (for me useless) information about access times to the SSD.
UUID=bb1d5dc2-f20a-4360-b0f8-ba05948d8a7e / ext4 errors=remount-ro,noatime,discard 0 1
Ubuntu 10.10 comes with it’s own version of libva1,??? ?1.0.1-3 (libva1) at the moment. However, if you’ve installed the version from splitted-desktop (because you wanted GPU acceleration on ATI cards, for instance) you need to keep their version (libva1-dbg_0.31.1-1+sds4_i386.deb at the moment).
To tell Ubuntu Software Updater never to update your working, splitted-desktop libva1, enter this in the terminal:
echo libva1 hold | sudo dpkg --set-selections echo libva-dev hold | sudo dpkg --set-selections
Now Ubuntu won’t update it anymore and libva1 from splitted-desktop will be used.
This VFD is the one supplied with, for instance, the D-Vine Home Theater PC MCE-301.
It has a parallel connector, but once you’ve connected it, it will be automatically recognized by Ubuntu/Linux.
I assume Rhythmbox and Ubuntu are already installed.
1. Get lcdproc: http://sourceforge.net/projects/lcdproc/files/
(perhaps “sudo apt-get install lcdproc” works as well, but I compiled from source)
2. Compile it, ./configure –enable-drivers=hd44780
3. Make/Install it: make; sudo make install
4. Configure LCDd.conf:
LCDd.conf
# LCDd.conf # # This file contains the configuration for the LCDd server. # [server] Driver=hd44780 DriverPath=/usr/lib/lcdproc/ # # Tells the server to load the given drivers. Multiple lines can be given. # NOTE: You may activate several input (input only) drivers but only ONE output # driver, which should be the first. Bind=127.0.0.1 # Tells the driver to bind to the given interface Port=13666 # Listen on this specified port; defaults to 13666. #ReportLevel=5 # Sets the reporting level; defaults to 2 (warnings and errors only). ReportToSyslog=no # Should we report to syslog instead of stderr ? Default: no WaitTime=5 # Sets the default time in seconds to displays a screen. User=nobody # User to run as. LCDd will drop its root priviledges, # if any, and run as this user instead. ServerScreen=no # Enables the built-in server screen [Default: no] # yes : always, # no : when there are no other screens active. Foreground=no # The server will stay in the foreground if set to true. # Otherwise the server will fork to background and report # to syslog # TIP: The following options can also be modified from the # server menu (which requires a driver that supports input) Heartbeat=off # The server has serveral heartbeat modes # on Stays on all the time # off Stays off all the time # slash Rotating slash all the time # open Can be controlled by all clients InitialHeartbeat=on # This sets the initial heartbeat state if the heartbeat mode is "open" # Affects the server screen only# on Heartbeat activated # off Heartbeat disabled # slash Heartbeat replaced with a rotating slash Backlight=open # The server has serveral backlight modes # on Stays on all the time # off Stays off all the time # open Can be controlled by all clients InitialBacklight=on # This sets the initial backlight state if the backlight mode is "open" # Affects the server screen only
BacklightBrightness=255 # This sets the backlight brightness in state "on" # NOTE: Not all drivers/devices support setting the brightness this # way. Some don't support switching the backlight on/off at all, # some can switch the backlight on or off only. If the latter is # the case BacklightBrightness must be > 0. BacklightOffBrightness=0 # This sets the backlight brightness in state "off" # NOTE: Not all drivers/devices support setting the brightness this # way. Some don't support switching the backlight on/off at all, # some can switch the backlight on or off only. If the latter is # the case BacklightBrightness must be = 0. [input] # Input section with settings that are related to input handling # NOTE: Not all drivers have input functionality # keypad settings # Keyname Function # Normal context Menu context # ------- -------------- ------------ # # PauseKey Pause/Continue Enter/select # BackKey Back(Go to previous screen) Up/Left # ForwardKey Forward(Go to next screen) Down/Right # MainMenuKey Open main menu Exit/Cancel #FreePauseKey=yes # If set to yes, this prevents LCDd from handling the PauseKey itself #FreeBackKey=yes # If set to yes, this prevents LCDd from handling the BackKey itself #FreeForwardKey=yes # If set to yes, this prevents LCDd from handling the ForwardKey itself #FreeMainMenuKey=no # If set to yes, this prevents LCDd from handling the MainMenuKey itself # TIP: Even if you "free" the above keys, you can still use the menu # provided you set FreeMainMenuKey=no # Driver sections are below this line, in alphabetical order [HD44780] # Hitachi HD44780 driver # See docs/hd44780_howto.txt DriverPath=/usr/lib/lcdproc/ Port=0x378 # Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC #ConnectionType=4bit ConnectionType=winamp # Select what type of connection. See documentation for types. Keypad=no # If you have a keypad connected. Keypad layout is currently not # configureable from the config file. Backlight=no # If you have a switchable backlight. Size=16x2 # Specifies the size of the LCD. # In case of multiple combined displays, this should be the total size. #vspan=1,2 # For multiple displays: at what 'logical' lines do the individual displays # start. #extended=yes # If you want to use more than 3 HD44780 controllers on the LPT, you need to # specify this. See documentation. #DelayMult=2 # If your display is slow and cannot keep up with the flow of data from # LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4 # to increase the delays. Default: 1. DelayBus=true # You can reduce the inserted delays by setting this to false. # On fast PCs it is possible your LCD does not respond correctly. # Default: true. #Device=/dev/ttyS0 # For PIC-an-LCD connection type only: the serial device to which the LCD # is connected. Default: /dev/lcd
5. Start it: sudo /etc/init.d/LCDd start
Now you should see some message sort of client/server on the display.
6. You can test it, for instance with this little perl program (test.pl) :
#!/usr/bin/perl -w
# vim: set sw=4 ts=4 et:
# lcddate.pl - display time and day on an external LCD display
# Copyright GPL 2005, Guido Socher
use IO::Socket;
use Fcntl;
use strict;
#
my $remote = IO::Socket::INET->new(
Proto => "tcp",
PeerAddr => "localhost",
PeerPort => 13666)|| die "Cannot connect to LCDd\n";
$remote->autoflush(1);
sleep 1; # give the server time to notice us...
print $remote "hello\n";
# we must read the response even if we ignore it:
my $lcdresponse = <$remote>;
# Turn off blocking mode...
fcntl($remote, F_SETFL, O_NONBLOCK);
# Set up some screen widgets...
print $remote "client_set name lcdtime\n";
print $remote "screen_add scr1\n";
print $remote "widget_add scr1 str1 string\n";
#gsk:
print $remote "widget_add scr1 str2 string\n";
#
my $date;
my @ltime;
while(1)
{
$lcdresponse = <$remote>;
#$date = scalar localtime; # this is 24 char long. The following is bettter:
@ltime = localtime;
#return a date in yyyy-mm-dd hh:mm format
$date = sprintf("%04d-%02d-%02d %02d:%02d",
1900+$ltime[5],$ltime[4]+1,$ltime[3],$ltime[2],$ltime[1],$ltime[0]);
print $remote "widget_set scr1 str1 1 1 \"$date\"\n";
print $remote "widget_set scr1 str2 1 2 \"Yes it works!\"\n";
sleep 10;
}
7. If you want Rhythmbox to display your current song/artist, follow the instructions here: http://locoudev.0fees.net/
Prerequisites: Get clunc, install Debian, via either telnet/ssh or just put the harddisk in an existing Linux computer.
1. From terminal : ./clunc -i 192.168.2.77 -w 120
2. Boot LaCie NAS
3. Clunc shows prompt Marvell>>
4. Enter: boot;ext2load ide 1:1 400000 /boot/uImage;bootm 00400000 at prompt.