I mean, which command is there in your Openbox menu configuration for launching mplayer? Use the same for your WBar launcher.
free-and-bsd said:I mean, which command is there in your openbox menu config for launching mplayer? Use the same for you WBar launcher.
gmplayer also. Thought it was simply mplayer.taz said:Screenshot
You can take a screenshot with imlib2 like this:
$ imlib2_grab myBSD.png
shutdown command from Openbox as a normal user anymore (it worked perfectly before). Is it possible to make it work again somehow? portsnap fetch portsnap extract portsnap update portsnap fetch update cd /usr/ports/ports-mgmt/portmaster/ && make install clean cp /usr/local/etc/portmaster.rc.sample /usr/local/etc/portmaster.rc ee /usr/local/etc/portmaster.rc# Always delete stale distfiles without prompting (-d)
ALWAYS_SCRUB_DISTFILES=dopt
# Be verbose (-v)
PM_VERBOSE=vopt
# Install packages for build-only dependencies (--packages-build)
PM_PACKAGES_BUILD=pmp_build
# Delete build-only dependencies when finished (--delete-build-only)
PM_DEL_BUILD_ONLY=pm_dbo
#Suppress the build confirmation message (--no-confirm)
PM_NO_CONFIRM=pm_no_confirm
upadate all ports:
portmaster -a
force:
portmaster -af
search for updates and list all installed ports by category:
portmaster -L
portmaster -L | grep "New version available:"
clean stale distfiles:
portmaster --clean-distfiles
with out promt:
portmaster --clean-distfiles-all
uninstall the port and it's dependencies:
portmaster -e target_port
rebuild the specified port, and all ports that depend on it:
portmaster -r target_port
portmaster x11-servers/xorg-server portmaster x11-drivers/xorg-drivers portmaster x11/xinit portmaster x11/xauth portmaster x11-fonts/xorg-fonts portmaster x11-fonts/webfonts Xorg -configure cp /root/xorg.conf.new /etc/X11/xorg.confSection "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "hr"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1366x768"
EndSubSection
EndSection
portmaster x11/nvidia-xconfig nvidia-xconfig echo "nvidia_load=\"YES\"" >> /boot/loader.conf echo "moused_port=\"/dev/psm0\"" >> /etc/rc.conf echo "moused_enable=\"YES\"" >> /etc/rc.conf portmaster x11-wm/openbox mkdir ~/.config mkdir ~/.config/openbox cp /usr/local/etc/xdg/openbox/menu.xml ~/.config/openbox/menu.xml cp /usr/local/etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml touch ~/.config/openbox/autostart.sh && chmod +x ~/.config/openbox/autostart.sh echo "#!/bin/sh" >> ~/.config/openbox/autostart.sh echo "exec openbox-session" >> ~/.xinitrc portmaster x11/tint echo "(sleep 2 && tint2) &" >> ~/.config/openbox/autostart.sh mkdir ~/.config/tint2 cp /usr/local/share/examples/tint2/tint2rc ~/.config/tint2/tint2rc<margins>
<top>0</top>
<bottom>30</bottom>
<left>0</left>
<right>0</right>
</margins>
portmaster deskutils/pypanel echo "(sleep 2 && pypanel) &" >> ~/.config/openbox/autostart.shif button == 1:
pp.taskFocus(task)
if button == 1:
pp.taskFocus(task)
pp.taskFocus(task)
portmaster x11/wbar echo "(sleep 2 && wbar) &" >> ~/.config/openbox/autostart.shi: /usr/local/share/pixmaps/wbar/terminal.png
c: urxvtc
t: urxvtc
i: /usr/local/share/pixmaps/wbar/music.png
c: urxvt -e mplayer -playlist ~/tera1/Music/RadioStream/soulful.pls
t: soulful
portmaster graphics/feh echo "feh --bg-scale ~/path/to/wallpaper.jpg &" >> ~/.config/openbox/autostart.sh cd ~/.config/openbox/ fetch [url]http://www.bsdnexus.com/wallpapers/DD_freebsd.jpg[/url] echo "feh --bg-scale DD_freebsd.jpg &" >> autostart.sh feh -t portmaster x11/rxvt-unicode$ echo "urxvtd -q -f -o" >> ~/.config/openbox/autostart.sh$ urxvtc. portmaster sysutils/automount automount --helpREMOVEDIRS="YES"
portmaster sysutils/fusefs-ntfs cp /usr/local/modules/fuse.ko /boot/modules/ echo "fuse_load=\"YES\"" >> /boot/loader.conf ntfs-3g /dev/da*s1 /mnt dmesg shutdown -r now shutdown -p now pw groupmod operator -m user_name startx#!/bin/sh
#usage: ./this_script.sh "url"
COOKIE_FILE=/var/tmp/youtube-dl-cookies.txt
mplayer -cookies -cookies-file ${COOKIE_FILE} $(youtube-dl -g --cookies ${COOKIE_FILE} $*)
youtube-dl "http://www.youtube.com/watch?v={video_id} links -gWITH_X11_ONLY=YES
portmaster -m WITH_X11_ONLY=YES editors/vim mplayer /path/to/video/file/example.avi9 - volume -
0 - volume +
f - toggle full screen
p - pause/resume
q - quit
mocp cp /usr/local/share/examples/rtorrent/rtorrent.rc ~/.rtorrent.rc smbpasswd -a user_name ee /usr/local/etc/smb.conf[global]
workgroup = WORKGROUP
server string = FreeBSD Samba server
netbios name = server_name
security = user
encrypt passwords = yes
#hosts allow = 127.0.0.1 192.168.1.0/24
#hosts deny = 0.0.0.0/0
socket options = TCP_NODELAY
log level = 2
log file = /var/log/samba.log.%m
max log size = 50
debug timestamp = yes
[Media]
comment = Media Share Folder
path = /path/to/folder/you/want/to/share
read only = no
writeable = yes
//server_name mount_smbfs -I xxx.xxx.xxx.xxx -N "//user_name@pc_name/share_name" /mnt mount_smbfs //user_name@server_name/share_name /mnt echo "samba_enable=\"YES\"" >> /etc/rc.conf service samba start service samba stopVBoxSDL is a simple graphical user interface (GUI) that lacks the nice point-and-click support which VirtualBox, our main GUI, provides.
echo "vboxdrv_load=\"YES\"" >> /boot/loader.conf echo "vboxnet_enable=\"YES\"" >> /etc/rc.conf echo "devfs_system_ruleset=\"system\"" >> /etc/rc.conf echo "[system=10]" >> /etc/devfs.rules echo "add path 'usb/*' mode 0660 group operator" >> /etc/devfs.rules#!/bin/sh
#-----------------------------------------------------------------------
#CONFIG
#-----------------------------------------------------------------------
#set dir for virtual hard disk image
hdPath=/usr/home/$USER/DATA/VBoxHD
#set virtual hard disk image in MB
hdSize=20480
#set virtual machine name
vmName="WinXp"
#set os type. Run "VBoxManage list ostypes" to list options,c/p under ID.
osType="WindowsXP"
#set path to guest ISO
guestISO="/usr/home/$USER/DATA/xp.iso"
#set RAM size
ramSize=1024
#set RAM size for GPU
gpuRamSize=128
#set network interface
nic="re0"
#create folder for virtual hard disk image
if [ ! -d $hdPath ]
then
mkdir $hdPath
fi
#-----------------------------------------------------------------------
#CREATE
#-----------------------------------------------------------------------
#create a new virtual hard disk image.
VBoxManage createhd --filename $hdPath/$vmName.vdi --size $hdSize
#create a new XML virtual machine definition file
VBoxManage createvm --name $vmName --ostype $osType --register
#add an IDE controller with a DVD drive attached, and the install ISO inserted into the drive. Set "--medium none" to detach all.
VBoxManage storagectl $vmName --name "IDE Controller" --add ide
VBoxManage storageattach $vmName --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium $hdPath/$vmName.vdi
VBoxManage storageattach $vmName --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium $guestISO
#set boot order
VBoxManage modifyvm $vmName --boot1 dvd --boot2 disk --boot3 none --boot4 none
#set I/O APIC support
VBoxManage modifyvm $vmName --ioapic on
#set the amount of RAM
VBoxManage modifyvm $vmName --memory $ramSize
#set the amount of RAM for virtual graphics card
VBoxManage modifyvm $vmName --vram $gpuRamSize
#set network mode(briged,NAT...)
VBoxManage modifyvm $vmName --nic1 bridged --bridgeadapter1 $nic
#enable USB support
VBoxManage modifyvm $vmName --usb on
#enable sound
VBoxManage modifyvm $vmName --audio oss --audiocontroller ac97
VBoxSDL --startvm VM_name --fullscreen VBoxManage list vms VBoxManage storageattach $vmName --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /path/to/iso/additions.iso. umount /dev/da* VBoxManage list usbhost VBoxManage controlvm VM_name usbattach UUID mount_cd9660 /dev/cd0 /mnt imlib2_grab myBSD.png echo "hw.syscons.bell=0" >> /etc/sysctl.confme:\
:charset=UTF-8:\
:lang=en_US.UTF-8:
locale -aThank you for this little update! One little thing: I think you could replace the picture at the end of 'Starting X'? Since it's not available anymore.tzoi516 said:Updated posts start -->here<--
Done! Thanks for catching that.nydn said:Thank you for this little update! One little thing: I think you could replace the picture at the end of 'Starting X'? Since it's not available anymore.tzoi516 said:Updated posts start -->here<--
cd /usr/ports/x11-wm/openbox && make install clean instead and that worked fine.Fantastic guide! I basically created an account here just to show my appreciation. This "how to" pushed me over the line to try FreeBSD on an old desktop and have since installed it on my main laptop. I even try to mimic this when installing a Linux system. Thanks!
Also for all the "lovers" off this guide the "[howto] minimal FreeBSD desktop v2" should be available within a month or two.
#!/usr/local/bin/bash
echo "Type filename to save"
read imagename
import $imagename
echo "Screenshot saved as $imagename"
...
+ "Screenshot" Exec exec xterm -geometry 30x5 ~/./printscreen
And BTW, more about how to make screenshots using ImageMagick, see this page. Arch people are very nice.
Yea, they talk a lot about this one. But I just happen to have ImageMagick installed (as do many, I believe) for a good deal of things, including some funny FVWM2 "look & feel" customizations.If you don't need ImageMagick installed for anything else, have a look at graphics/scrot. It's tiny, and can take a screenshot of the entire display, a selection or a single window. Seems to be what most folks use make screenshots for the Arch forums.![]()