Skip to content

Commit e0a3a1f

Browse files
author
Ruoran Wang
committed
more code block fix
1 parent 2425efe commit e0a3a1f

5 files changed

+32
-34
lines changed

source/_posts/2010-07-09-debian-ftp-archive-for-etch-archive-debian-org.markdown

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ tags:
1717

1818
And indeed running apt update was giving a  **404 error**, as the etch files are no longer in the main ftp archive (on ftp.debian.org):
1919

20-
`apt-get update
20+
```
21+
apt-get update
2122
Ign http://ftp.debian.org etch Release.gpg
2223
Ign http://ftp.debian.org etch Release
2324
Ign http://ftp.debian.org etch/main Packages
@@ -34,7 +35,8 @@ Reading package lists... Done
3435
W: Couldn't stat source package list http://ftp.debian.org etch/main Packages (/var/lib/apt/lists/ftp.debian.org_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
3536
W: Couldn't stat source package list http://ftp.debian.org etch/non-free Packages (/var/lib/apt/lists/ftp.debian.org_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)
3637
W: Couldn't stat source package list http://ftp.debian.org etch/contrib Packages (/var/lib/apt/lists/ftp.debian.org_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory)
37-
W: You may want to run apt-get update to correct these problems`
38+
W: You may want to run apt-get update to correct these problems
39+
```
3840

3941
and the apt sources line causing this error was (from **/etc/apt/sources.list**):
4042
`deb http://ftp.debian.org/debian/ etch main non-free contrib`

source/_posts/2010-07-09-howto-remove-a-list-of-files.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ tags:
1818
---
1919

2020
Here is a quick tip on how to remove a list of files. Let's say you have the list of files inside a file called **files_to_remove**. Usually I would do something like this:
21-
`LIST=`cat files_to_remove``
21+
LIST=\`cat files_to_remove\`
2222
and then
23-
`ls -al $LIST`
23+
ls -al $LIST
2424
just to check what is in the list and if it looks good.
2525

2626
And finally:
27-
`rm -vf $LIST`
27+
rm -vf $LIST

source/_posts/2010-10-14-delete-duplicate-packages-in-centos.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ tags:
1616
---
1717

1818
I got a package dependency issue when updating our 64-bit CentOS server, which was caused by two perl packages installed (i386 and x86_64).
19-
`
19+
```
2020
perl i386 4:5.8.8-32.el5_5.1 installed 28 M
2121
perl x86_64 4:5.8.8-32.el5_5.1 installed 34 M
22-
`
22+
```
2323
I tried to remove it using rpm command but didn't work (maybe i just don't know the correct params with rpm). My solution to remove package was using yum "_remove package_name.architecture_". Ex: `yum remove perl.i386`
2424

2525
Any other shortcuts in deleting duplicate packages?

source/_posts/2010-10-15-upload-or-download-multiple-files-resursive-using-command-line-ftp.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ tags:
1616

1717
Problem is I can't upload directory including sub-directories and files using command-line ftp. I searched for similar problem and looks like you can't do this using command line ftp, unless you create a script. One solution I found is the use of "[lftp](http://lftp.yar.ru/)".
1818

19-
\# lftp ftp_host
20-
\> user ftp_user ftp_pass
21-
\> mirror source target (download entire directory tree)
22-
\> mirror -R source target (reverse mirror; upload entire directory tree)
19+
# lftp ftp_host
20+
> user ftp_user ftp_pass
21+
> mirror source target (download entire directory tree)
22+
> mirror -R source target (reverse mirror; upload entire directory tree)
2323

2424
Usefull when transferring files between servers where you only have ftp access.
2525

source/_posts/2010-10-17-install-apache-solr-and-tomcat-for-drupal.markdown

+19-23
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ Here's my quick install guide for Solr, Tomcat, and Drupal ApacheSolr module for
6464

6565
* Edit _/opt/tomcat/conf/tomcat-users.xml_ to enable Tomcat login.  See comments in this file.
6666

67-
68-
`<role rolename="manager"/>
67+
```
68+
<role rolename="manager"/>
6969
<role rolename="admin"/>
70-
<user username="tomcat" password="tomcat" roles="manager,admin"/>`
70+
<user username="tomcat" password="tomcat" roles="manager,admin"/>
71+
```
7172

7273

7374

@@ -104,10 +105,12 @@ Here's my quick install guide for Solr, Tomcat, and Drupal ApacheSolr module for
104105
* Create file _/opt/tomcat/conf/Catalina/localhost/solr.xml_ with the following configuration.  Make sure paths are correct.
105106

106107

107-
`<Context docBase="/opt/tomcat/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
108+
```
109+
<Context docBase="/opt/tomcat/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
108110
<Environment name="solr/home" type="java.lang.String" value="/opt/tomcat/solr" override="true" />
109111
</Context>
110-
`
112+
```
113+
111114
**Install Process: ApacheSolr Drupal module and SolrPHP client**
112115

113116

@@ -136,51 +139,44 @@ Here's my quick install guide for Solr, Tomcat, and Drupal ApacheSolr module for
136139
* Create directory for each site and copy _/opt/tomcat/solr/conf _ directory to each of them. Example:
137140

138141

139-
`mkdir /opt/tomcat/solr/site1
140-
mkdir /opt/tomcat/solr/site2
141-
cp -r /opt/tomcat/solr/conf /opt/tomcat/solr/site1/
142-
cp -r /opt/tomcat/solr/conf /opt/tomcat/solr/site2/`
142+
mkdir /opt/tomcat/solr/site1
143+
mkdir /opt/tomcat/solr/site2
144+
cp -r /opt/tomcat/solr/conf /opt/tomcat/solr/site1/
145+
cp -r /opt/tomcat/solr/conf /opt/tomcat/solr/site2/
143146

144147

145148

146149

147150
* Edit _/opt/tomcat/solr/solr.xml_ with the following config:
148151

149-
150-
`<?xml version="1.0" encoding="UTF-8" ?>
152+
```
153+
<?xml version="1.0" encoding="UTF-8" ?>
151154
<solr persistent="false">
152155
<cores adminPath="/admin/cores">
153156
<core name="site1" instanceDir="site1" />
154157
<core name="site1" instanceDir="site2" />
155158
</cores>
156-
</solr>`
159+
</solr>
160+
```
157161

158-
159-
160-
161162
* Start or Restart Tomcat: _/etc/init.d/tomcat6 start_
162-
163163

164164
* Visit _http://localhost:8080/_ and go to you Solr App
165165

166166

167167
**Configure Drupal site:**
168168

169-
170-
171169

172170
* Go to ApacheSolr settings _http://localhost/admin/settings/apachesolr_
173171

174172

175173
* Save your config and if all is good you'll see message: _Your site has contacted the Apache Solr server._
176174

177-
178-
`Solr host name: localhost
175+
```
176+
Solr host name: localhost
179177
Solr port: 8080
180178
Solr path (for site1): /solr/site1
181-
`
182-
183-
179+
```
184180

185181
* Configure your search index.
186182

0 commit comments

Comments
 (0)