Badges

Types

Formats

Show Only

ArchLinux Pacman Package Manager
https://mreschke.com/137/archlinux-pacman-package-manager
is the package manager application used by . Pacmans config file is located at /etc/pacman.conf. Pacman uses different repositories of files. These repos can be added to your system through the pacman.conf. By default, pacman uses 3 repos; core, extra and community. There are a lot of mirrors for pacman across the globe, pacman uses the /etc/pacman.d/mirrorlist file to determine which mirrors to use. The speed of pacman greatly depends on which mirrors you choose. Pacman uses wget by...
|
post #137 by mreschke Feb 23rd 2009 (7316 views)
FreeBSD Basics
https://mreschke.com/270/freebsd-basics
FreeBSD is an advanced operating system for modern server, desktop, and embedded computer platforms.[[http://freebsd.org]] This is only a brief crash course or introduction to a few of the import tasks in FreeBSD, mostly installing ports/packages, upgrading the system and navigating the file system. FreeBSD maintains an incredible wealth of documentation on their website, see their [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ Handbook] for information. A great intro to FreeBSD can be found http://www.freebsd.org/doc/en/articles/linux-users/article.html <box :!!!:> Please note that I come mostly from Linux, so I tend to setup FreeBSD in a manner that is similar to my Linux environment (ie, bash vs csh...). </box> > Each command in this topic starts with a # if it is meant to be run as the root user, or a $ (or no sign) if it is meant to be run as the regular user (your main user account)
|
post #270 by mreschke Oct 12th 2011 (3698 views)
Mac Ports
https://mreschke.com/232/mac-ports
Update ports tree sudo port selfupdate List all ports port list Search for a port port search xxx Info on a port port info xxx Install port with port install xxx Show outdated ports port outdated Upgrade all your existing ports sudo port upgrade outdated Upgrade one port sudo port upgrade xxx You can install GTK apps like leafpad, but they look ugly. Change the GTK theme with: http:hints.macworld.com/article.php?story=20080309171359879 You can use the mac4lin gtk theme, see: http:pepijndevos.nl...
|
post #232 by mreschke Feb 3rd 2011 (2731 views)
Respin Your Own Linux Distro
https://mreschke.com/179/respin-your-own-linux-distro
Awesome ubuntu respins (wow, this is what I have been looking for forever, its perfect) https:help.ubuntu.com/community/LiveCDCustomization Nice ubuntu remaster, notice how they copy certain home folders to /etc/skel http:crunchbanglinux.org/forums/topic/2859/remastersys-guide-create-your-own-ubuntubased-distro/ http:en.wikipedia.org/wiki/List_of_remastering_software remastersys (debian ubuntu) systemimager (any?) kickstart (Red Had/Fedora/Centos) remasterme (PCLinuxOS) Mount an ISO, then chroo...
|
post #179 by mreschke Jan 28th 2010 (6082 views)
Adjust iFrame Height
https://mreschke.com/171/adjust-iframe-height
http:blogs.x2line.com/al/articles/315.aspx Instead of onclick, I am going to add a function AdjustHeight to the onload of the body of the child frame And add this function the the iframe aspx page. Doesn't work for me yet because my iframe is nested in a DetailRow So I have to find the correct name for the iframe. function AdjustHeight() { parent.document.getElementById('ifrForms').style.height = document.body.scrollHeight } Javascript Tip: Adjust iframe Size to Fit its Contents Sometimes we put...
|
post #171 by mreschke Jan 7th 2010 (3152 views)
Concat Rows in MSSQL
https://mreschke.com/138/concat-rows-in-mssql
How to return a comma separated list, in one column, from a field in multiple rows. If you have, for example, email addresses on multiple rows in a table but want to return them as one column, comma separated. Example: Database table ID | report_id | email | 1 | 1 | email1@email.com 2 | 1 | email2@email.com 3 | 1 | email3@email.com I want a return of report_id | email -| 1 | email1@emailcom,email2@email.com,email3@email.com To achieve this, you must create a user defined function which will conc...
|
post #138 by mreschke Mar 3rd 2009 (3948 views)
ArchLinux
https://mreschke.com/136/archlinux
Related Topics https:wiki.archlinux.org/index.php/Daemon If you use HAL, start dbus before hal, even though hal will start dbus and acpid, explicitly add dbus before hal anyway Do not background dbus Do not background anything you need immediately DAEMONS=(syslog-ng gensplash dbus hal network netfs @avahi-daemon @samba @crond @openntpd @cups @mpd) I like @syslog-ng network @netfs dbus @hal @crond kdm The default base install is syslog-ng network netfs crond Installation Guid at http:wiki.archli...
|
post #136 by mreschke Feb 23rd 2009 (5729 views)
Linux Bootdisk
https://mreschke.com/130/linux-bootdisk
Would really like to learn more about embedded linux. Found an incredible website about Bootdisks and the boot process at http:www.tldp.org/HOWTO/Bootdisk-HOWTO which will be a good start. Later I will tackle Linux from Stratch at http:www.linuxfromscratch.org/lfs/view/stable/chapter01/how.html Also found some nice articles on a Tiny Busybox system written by the creator of BusyBox himself! Part 1 http:www.linuxjournal.com/article/4335 Part 2 http:www.linuxjournal.com/article/4395 BIOS calles s...
|
post #130 by mreschke Feb 10th 2009 (4741 views)
Kernel Virtual Machine (KVM)
https://mreschke.com/128/kernel-virtual-machine-kvm
Very nice, KVM on ubuntu instructions https:help.ubuntu.com/community/KVM Remember, theres also VirtualBox which I do have running, and there is vmware which I also have running. First attempt to virt vista Installing Windows Vista Ultimate on a KVM Virtual Machine running on Ubuntu Hardy Heron 8.04 Check if CPU can virtualize (can it returns any results) egrep '(vmx|svm)' --color=always /proc/cpuinfo Check if you have a 64 CPU (is if it returns any results) grep ' lm ' /proc/cpuinfo Check if y...
|
post #128 by mreschke Feb 9th 2009 (5540 views)
BSD Help
https://mreschke.com/122/bsd-help
FYI, new install of FreeBSD 9.0-BETA3 with docs, src, ports,, (basic standard full install) ended up using 2.5g HD space. The new installer defaults entire drive to / slice, in fact the entire installer is quite different that previous versions, much easier it seems. portsnap fetch portsnap extract portsnap upgrade (after that just 'portsnap fetch update' to get latest ports) whereis portupgrade cd /usr/ports make quicksearch name=portupgrade cd /usr/ports/ports-mgmt/portupgrade; mak...
|
post #122 by mreschke Dec 31st 2008 (4767 views)
Protect Apache Alias with htaccess
https://mreschke.com/115/protect-apache-alias-with-htaccess
How to password protect a apache alias Alias /seagate750/ "/mnt/seagate750/" AllowOverride All Options Indexes MultiViews Allow from all Note, must goto http:server/seagate750/ (Must have that last /) make /mnt/seagate750/.htaccess AuthType Basic AuthName "Password" AuthUserFile /mnt/seagate750/.htpasswd require valid-user make /mnt/seagate750/.htpasswd mreschke:blahblahblah replace that with the correct password, you can find a apache password generator online, just enter mreschke as the user M...
|
post #115 by mreschke Oct 21st 2008 (4222 views)
SSH RSA Keys
https://mreschke.com/106/ssh-rsa-keys
For this to work the servers /etc/ssh/sshd_config must have RSAAuthentication yes PubkeyAuthentication yes On the local client, in a terminal, as the user you normally use to ssh with (like your normal username) ssh-keygen -t rsa This generates an RSA key for SSHv2 (v2 is the -t paramater) This creates 2 files in your /home/username/.ssh/ folder id_rsa, which is the private key id_rsa.pub which is the public key Now we have to get that public key file on to the server your are connecting to wit...
|
post #106 by mreschke Sep 14th 2008 (4916 views)
Remote Filesystem with SSHFS
https://mreschke.com/105/remote-filesystem-with-sshfs
Used for mounting a folder over SSH (Secure Shell File System). So I can map drives from a remote linux server. From http:www.linuxinsight.com/sshfs_secure_and_transparent_access_to_remote_filesystems.html apt-get install sshfs or yum install fuse-sshfs Finally, as sshfs is designed to be used by regular users (not under superuser privileges) you should add yourself (and possibly others) to the fuse system group. Something like this should do: usermod -a -G fuse You must logout and login again...
|
post #105 by mreschke Sep 14th 2008 (5217 views)
Windows Remote Desktop
https://mreschke.com/99/windows-remote-desktop
While connect to a remote computer using windows remote desktop, the normal CTRLnot effect the remote machine, only your local computer. So these shortcuts give you control on the remote computer. Key combination Function Similar local keys CTRLCTRLALTALTALTCTRLCTRL http:sqlblogcasts.com/blogs/simons/archive/2006/02/06/CTRL-ALT-DEL-in-Terminal-Services.aspx First off, make sure the Remote Desktop Services service is started. In the Remote Desktop settings of my Windows 7 Professional 64bit insta...
|
post #99 by mreschke Aug 22nd 2008 (6016 views)
FreeNX Remote Desktop
https://mreschke.com/97/freenx-remote-desktop
FreeNX (http:freenx.berlios.de/) is a Terminal Server for Unix & Linux, similar to windows remote desktop or linux 2xTerminalServer. It is based off the non-free NX (http:www.nomachine.com/index.php). FreeNX client is only for linux, but NX has free clients for windows (http:www.nomachine.com/download.php) http:www.drtek.ca/freenx-server-ubuntu-hardy Note, uses SSH, so uses that port in /etc/ssh/sshd_config also, in sshd_config, if you have the AllowUsers set, then must add nx ex: AllowUsers nx...
|
post #97 by mreschke Aug 18th 2008 (2985 views)
Samba in Ubuntu
https://mreschke.com/94/samba-in-ubuntu
apt-get install samba Add the linux user, but disable linux box login useradd -d /home/username -s /bin/false -n username This will create a new user with same group name with (told by '-n'), but the user can't login and run any shell command (because you have specfic the login shell is /bin/false by the '-s' switch, if you want allow user to able to login to a shell, replace /bin/false with /bin/sh). Create a samba user (same as linux username created above) smbpasswd -a username '-a' switch t...
|
post #94 by mreschke Jul 26th 2008 (5590 views)
Javascript WZ_ToolTip
https://mreschke.com/91/javascript-wz-tooltip
Find most documentation online at http:www.walterzorn.de/en/tooltip/tooltip_e.htm Very awesome javascript tooltips, very advanced. One thing I did find is in IE7 (and maybe others, didn't test), the page loads very slowly with wz_tooltip in there. The fix was found at http:www.webdeveloper.com/forum/showthread.php?t=163644 I edited wz_tooltip tt_Err("There are HTML elements to be converted to tooltips.\nIf you" It defaultly says, true at the end. I am using an html element with all my tooltip d...
|
post #91 by mreschke Jul 23rd 2008 (5873 views)
Linux Network Configuration
https://mreschke.com/81/linux-network-configuration
Nice how2 on the /etc/network/interfaces http:www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/ Start the GUI network administration/configuration tool by typing redhat-config-network (Red Hat 9 and Enterprise 3.0) or system-config-network (Fedora) at a shell prompt. Make sure your network interface (typically eth0) is highlighted and click the Edit icon. Select the Automatically obtain IP address settings with dhcp radio button. Check the Automatically obtain DNS information from pr...
|
post #81 by mreschke Jul 12th 2008 (4659 views)
Linux SendEmail
https://mreschke.com/79/linux-sendemail
Not to be confused with linux sendmail. apt-get install sendEmail Create a bash script "sendemail" and run chmod 755 on it. #!/bin/sh export smtpemailfrom=zabbix@yourdomain.com export zabbixemailto=$1 export zabbixsubject=$2 export zabbixbody=$3 export smtpserver=yoursmtpserver.com export smtplogin=smtpuser export smtppass=smtppassword #Use this line if your SMTP server requires authentication /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:...
|
post #79 by mreschke Jun 30th 2008 (5047 views)
.NET Directory to DataGrid
https://mreschke.com/74/net-directory-to-datagrid
Add a directory of files to a datagrid For greater control, you can , then bind the dataset to the datagrid.
|
post #74 by mreschke Jun 5th 2008 (3292 views)
IE7 Extensions
https://mreschke.com/61/ie7-extensions
How to turn Internet Explorers Extensions Off Pass the parameter -extoff to iexplorer.exe to disable add-ons You can create a shortcut with extension off by settings the target to "%PROGRAMFILES%\Internet Explorer\iexplore.exe" -extoff Start In would be: %HOMEDRIVE%%HOMEPATH% Note: Attached to this article is a ready made link, just rename it from ....ln_ to ....lnk Keywords > IE7 Internet Explorer Add-ons addons extension off disable
|
post #61 by mreschke May 14th 2008 (2900 views)
Linux Paths
https://mreschke.com/43/linux-paths
Paths are the locations for executables which can be accessed from any location. echo $PATH PATH=$PATH:/dir/dir1 I downloaded UNace (an .ace acrhive extractor) I copied the unace folder to /usr/bin/ I added a path: PATH=$PATH:/usr/bin/unace now I can type unace anywhere, and it finds it from the path To edit a path for a user open $HOME/.bash_profile or to edit for all users edit /etc/profile In either file you will see: PATH=$PATH:$HOME/bin, just add paths to that, separate paths by a : PATH:$P...
|
post #43 by mreschke Apr 15th 2008 (2181 views)
Daemons and Runlevels
https://mreschke.com/41/daemons-and-runlevels
See LXF 114 p48, 'Banish Your Daemons' Runlevels are defined levels in which a linux operating system can start. Daemons (or services) are scripts/programs that run in the background constantly (like apache or mysql are services that are always running) and are usually executed at startup by the defined runlevel. Runlevels are identified by a number from 0 - 6, but each linux distribution may use those numbers a bit differently. Basically a runlevel determines which daemons to execute at startu...
|
post #41 by mreschke Apr 12th 2008 (13047 views)
Autostart Beryl
https://mreschke.com/36/autostart-beryl
<p>Beryl (a linux 3D desktop cube application) does not defaultly start with linux KDE or Gnome. These are instructions taken from <a class="urlLink" href="http://wiki.archlinux.org/index.php/Beryl#Method_2_-_Beryl_without_loading_kwin_.28Faster.29" onclick="window.open(this.href, '_blank'); return false;">http://wiki.archlinux.org/index.php/Beryl#Method_2_-_Beryl_without_loading_kwin_.28Faster.29</a> on how to autostart beryl in KDE.</p> <blockquote class="blockQuote">Beryl is old and is now known as compiz or compiz/fusion </blockquote>
|
post #36 by mreschke Mar 24th 2008 (3235 views)
Javascript Textarea Tab Override
https://mreschke.com/24/javascript-textarea-tab-override
Override tabs in a HTML textarea box. The only problem with this script, is that if you are in a large textarea, where there are scroll bars, when you hit tab, it scrolls to the top, try it, it really sucks! > FIX: I fixed this scroll behavior, update this topic to reflect the changes > Also added other keys, like shift http:blog.riait.co.uk/2007/11/04/tab-aware-textarea/ function TabAwareTextArea( o ) { this._o = o; this._isTabLast = false; for gecko: this._restoreFocusWithCaret = -1; this._las...
|
post #24 by mreschke Jan 30th 2008 (3387 views)
SQL Temporary Tables
https://mreschke.com/20/sql-temporary-tables
CREATE TABLE #month0to6 (vin nvarchar(20)) DECLARE @startDate as nvarchar(10), SCF as nvarchar SET @startDate = '10/31/2007' --Insert 0 to 6 month data INSERT INTO #month0to6 (vin) SELECT DISTINCT tblVehicles.VEH_vin FROM tblROTotal --INNER JOIN tblApplications ON tblROTotal.ROH_DLR_APP_ID = tblApplications.APP_ID INNER JOIN tblVehicles ON tblROTotal.ROH_VEH_ID = tblVehicles.VEH_ID INNER JOIN tblMakeModel ON tblVehicles.VEH_MM_ID = tblMakeModel.MM_ID INNER JOIN tblCustomer ON tblCustomer.Cust_I...
|
post #20 by mreschke Jan 25th 2008 (2167 views)
Bootable KNOPPIX USB Drive
https://mreschke.com/19/bootable-knoppix-usb-drive
<p>Knoppix 5.0.1 boots rather nicely from a USB key. It's getting easier to get it working, as the USB bugs from the previous versions have been fixed. This is a "recipe" for creating a Knoppix bootable USB key. It was originally posted to the forums: <a class="urlLink" href="http://knoppix.net/forum/viewtopic.php?t=25402" onclick="window.open(this.href, '_blank'); return false;">http://knoppix.net/forum/viewtopic.php?t=25402</a></p>
|
post #19 by mreschke Jan 15th 2008 (5112 views)
mRcore Version Information
https://mreschke.com/11/mrcore-version-information
= mRcore 4.0 Current Theme = mRcore 4.0 Previous Theme = mRcore 2.0 Final Theme = View All Screenshots :r: Find out dates of each version :r: Since the day I got my first Apple IIc computer at age 10 and started learning Apple Basic I have always attempted to develop the same type of applications, content management systems. I really don't know why but I have always had a desire to catalog everything in my life in digital form. Perhaps it's because I feel I have a poor memory, or perhaps, being...
|
post #11 by mreschke Dec 9th 2007 (8648 views)
Showing 1 to 28 of 28 results